package gui;

import java.awt.Graphics;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.Observable;

import javax.swing.JFileChooser;

import modele.Modele;

public class Vignette extends AbstractVue {

	/**
	 * 
	 */
	private static final long serialVersionUID = -7646435342222911684L;

	public Vignette(){
		
	}
	
	@Override
	public void update(Observable o, Object arg) {
		if(arg.equals(new Boolean(true))){
			image = modele.getZoomedImage();
			
			repaint();
		}
	}

    public void paintComponent(Graphics g){
    	
        g.drawImage(image, 0, 0, this.getWidth(), this.getHeight(), this);
        
    } 
	

}
